package Agency.views;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author wangari
 */
public class EditTenantInformationView extends javax.swing.JFrame {

    /**
     * Creates new form EditTenantInformationView and  sets the background color to light gray 
     */
    public EditTenantInformationView() {
        this.getContentPane().setBackground(Color.LIGHT_GRAY);
        initComponents();
        setLocationRelativeTo(null);
    }
    /**
     * TextField to get name
     * @return jTName
     */
    public JTextField getTenantName(){
        return jTName;
    }
    /**
     * TextField to get tenant phone number
     * @return jTPhoneNum
     */
     public JTextField getTenantPhoneNum(){
        return jTPhoneNum;
    }
     /**
      * TextField to get tenant id number
      * @return jTIdNo
      */
      public JTextField getTenantIdNum(){
        return jTIdNo;
    }
      /**
       * ComboBox to return the house type
       * @return jCHouseType
       */
       public JComboBox getTenantHseType(){
        return jCHouseType;
    }
       /**
        * TextField to get the  tenant house id
        * @return jTHouseId
        */
        public JTextField getTenantHseId(){
        return jTHouseId;
    }
        /**
         * ComboBox to show the tenant house location
         * @return jCTown
         */
         public JComboBox getTenantTown(){
        return jCTown;
    }
         /**
          * ComboBox to show tenants gender
          * @return jCGender 
          */
         public JComboBox getTenantGender(){
             return jCGender;
         }
         /**
          * TextField to dhow tenants occupation
          * @return jTOccupation
          */
      public JTextField getTenantOccupation(){
          return jTOccupation;
      }
      /**
       * Button to search a tenant
       * @return jBEditor
       */
      public JButton searchTenant(){
          return jBEditor;
      }
      /**
       * Button to save the changes made to tenants information
       * @return jBSave
       */
      public JButton  saveChanges(){
          return jBSave;
      }
      /**
       * button to close the view
       * @return jBClose
       */
      public JButton closeView(){
          return jBClose;
      }
      /**
       * TextField to show plot number
       * @return jTPlotNum
       */
   
      public JTextField getPlotNum(){
          return jTPlotNum;
      }
  

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jBEditor = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jTName = new javax.swing.JTextField();
        jTIdNo = new javax.swing.JTextField();
        jTPhoneNum = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jCHouseType = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jTHouseId = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jCTown = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        jCGender = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jTOccupation = new javax.swing.JTextField();
        jBSave = new javax.swing.JButton();
        jBClose = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        jTPlotNum = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Edit Tenants Information");

        jLabel2.setText("Tenannts Name");

        jBEditor.setText("Click to enter the Tennats id to edit");

        jLabel3.setText("Tennats Id No");

        jLabel4.setText("Tennants Phone Number");

        jTName.setColumns(20);

        jTIdNo.setColumns(20);

        jTPhoneNum.setColumns(20);

        jLabel5.setText("House Type");

        jCHouseType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Apartments", "3 Bedroom", "2 Bedroom", "1 Bedroom", "Bedsitter", "Singleroom" }));

        jLabel6.setText("House Id");

        jTHouseId.setColumns(20);

        jLabel7.setText("Town");

        jCTown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Accra", "Madina", "Kwabenya", "Comet", "East Legon", "Dzorwulu", "Lapaz", "Ridge", "Airport Residential" }));

        jLabel8.setText("Gender");

        jCGender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "F", "M" }));

        jLabel9.setText("Occupation");

        jTOccupation.setColumns(20);

        jBSave.setText("Save Changes");

        jBClose.setText("Close");

        jLabel10.setText("House plot num");

        jTPlotNum.setColumns(20);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(306, 306, 306)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jBEditor))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(149, 149, 149)
                        .addComponent(jBSave)
                        .addGap(183, 183, 183)
                        .addComponent(jBClose))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel9)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5)
                            .addComponent(jLabel8)
                            .addComponent(jLabel7)
                            .addComponent(jLabel6)
                            .addComponent(jLabel10))
                        .addGap(254, 254, 254)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTPlotNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTHouseId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCTown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jCGender, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTPhoneNum)
                                    .addComponent(jTOccupation)
                                    .addComponent(jTIdNo)
                                    .addComponent(jTName)
                                    .addComponent(jCHouseType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
                .addContainerGap(170, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addGap(14, 14, 14)
                .addComponent(jBEditor)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jTName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jTIdNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jTPhoneNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jCHouseType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jTPlotNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jTHouseId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCTown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addGap(28, 28, 28)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addGap(28, 28, 28)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jTOccupation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBSave)
                    .addComponent(jBClose))
                .addGap(0, 17, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBClose;
    private javax.swing.JButton jBEditor;
    private javax.swing.JButton jBSave;
    private javax.swing.JComboBox jCGender;
    private javax.swing.JComboBox jCHouseType;
    private javax.swing.JComboBox jCTown;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField jTHouseId;
    private javax.swing.JTextField jTIdNo;
    private javax.swing.JTextField jTName;
    private javax.swing.JTextField jTOccupation;
    private javax.swing.JTextField jTPhoneNum;
    private javax.swing.JTextField jTPlotNum;
    // End of variables declaration//GEN-END:variables
}
